// vite.config.ts
import { fileURLToPath, URL } from "node:url";
import { defineConfig } from "file:///F:/code/word/world-h5/node_modules/vite/dist/node/index.js";
import vue from "file:///F:/code/word/world-h5/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import AutoImport from "file:///F:/code/word/world-h5/node_modules/unplugin-auto-import/dist/vite.js";
import Components from "file:///F:/code/word/world-h5/node_modules/unplugin-vue-components/dist/vite.js";
import { VantResolver } from "file:///F:/code/word/world-h5/node_modules/@vant/auto-import-resolver/dist/index.esm.mjs";
var __vite_injected_original_import_meta_url = "file:///F:/code/word/world-h5/vite.config.ts";
var vite_config_default = defineConfig({
  plugins: [
    vue(),
    // 当 unplugin-vue-components 版本小于 0.26.0 时，使用以下写法
    AutoImport({ resolvers: [VantResolver()] }),
    Components({ resolvers: [VantResolver()] })
    //当 unplugin-vue-components 版本大于等于 0.26.0 时，使用以下写法
    // AutoImport.default({
    //   resolvers: [VantResolver()],
    // }),
    // Components.default({ resolvers: [VantResolver()] }),
  ],
  resolve: {
    alias: {
      "@": fileURLToPath(new URL("./src", __vite_injected_original_import_meta_url))
    }
  },
  server: {
    proxy: {
      "/api": {
        target: "http://localhost:3000/",
        changeOrigin: true,
        rewrite: (path) => path.replace(/^\/api/, "/api")
      },
      "/rest": {
        target: "https://yyf.ylmlove.site/",
        changeOrigin: true,
        rewrite: (path) => path.replace(/^\/rest/, "/rest")
      }
    }
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJGOlxcXFxjb2RlXFxcXHdvcmRcXFxcd29ybGQtaDVcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZmlsZW5hbWUgPSBcIkY6XFxcXGNvZGVcXFxcd29yZFxcX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